package com.qf.security1.web;

import com.qf.security1.pojo.R;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collection;

@RestController
@RequestMapping("/order")
public class OrderController {

    @GetMapping("/test1")
    public R test1(){

        return R.success("order test1...");
    }
}
